package photobox.account

class Member extends User  {
    Integer  totalPoints = 0  //累计积分
    Float   totalPrice = 0  //累计交易金额
    String  phones
    String cellPhone    //手机号码
    String idCardNo    //身份证号码

    static constraints = {
        totalPoints size: 0..Integer.MAX_VALUE, nullable: true
        totalPrice nullable:true, scale: 2
        phones size: 0..200, nullable: true
        cellPhone size: 11..11, blank: false, matches: "[0-9]*"
        idCardNo size: 15..18, nullable: true
    }
}
